package com.imooc.springboot.study.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
//@JsonIgnoreProperties({"",""})//用来忽略一组属性
public class Imoocer {
    private String name;
    private int age;
    @JsonIgnore//忽略一组属性
    private String address;
    @JsonProperty("rt")//改变现实的值
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date registerTime;
}
